package com.lsk.internalcommon.util;

public class RedisPrefixUtils {
    //乘客验证码前缀
    public static String verificationCodePrefix = "verification-Code-";
    //token前缀
    public static String tokenPrefix = "token-Code-";


    public static String generatorKeyByPhone(String phone,String Identity){
        return verificationCodePrefix + Identity + "-" + phone;
    }

    public static String tokenKeyByPhone(String passengerPhone,String identity,String tokenType){
        return tokenPrefix  + passengerPhone + "-" +identity + "-" +tokenType;
    }
}
